package com.lostsheep.java.design.mode.builder;

/**
 * <b><code>Client</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2021/3/21.
 *
 * @author dengzhen
 * @since java-design-mode
 */
public class Client {

    public static void main(String[] args) {
        Builder lenovoLaptopBuilder = new LenovoLaptopBuilder();
        Director director = new Director(lenovoLaptopBuilder);
        Laptop lenovo = director.construct("intel", "lenovo", "nvidia");
        Builder macBookBuilder = new MacBookBuilder();
        Director director2 = new Director(macBookBuilder);
        Laptop macbook = director2.construct("intel", "apple", "amd");
        System.out.println(lenovo);
        System.out.println(macbook);
    }
}
